//
// C++ Interface: calendar
//
// Description: 
//
//
// Author: Os3 s.r.l. <xgui@os3.it>, (C) 2005
//
// Copyright: See COPYING file that comes with this distribution
//
//

namespace xgui
{ 
    %feature("docstring","derives from :class:`xgui.WidgetClass` ") CalendarClass;
	struct CalendarClass : public xgui::WidgetClass
	{
		CalendarClass();
		std::string const &className();
		bool isInstanceable();
		xgui::Object * create(xgui::Object * parent, xgui::StringMap &properties);
	};

    %feature("docstring","derives from :class:`xgui.Widget` \n\n**DESCRIPTION**\n\nCalendar widget is used to display a calendar-like interface to input dates.This class cannot be directly instantiated, but must be created using the :meth:`xgui.Master.CreateCalendar()` function.\n\n**PROPERTIES**\n\n * **nday** *(RW):* sets or retrieves the day of the month currently selected in the calendar\n\n * **month** *(RW):* sets or retrieves the month currently selected in the calendar\n\n * **year** *(RW):* sets or retrieves the year currently selected in the calendar\n\n * **date** *(RW):* sets or retrieves the full date currently selected in the calendar the format is *\"year-month-day\"*\n\n**EVENTS**\n\n * **onselect** *(linked to* :class:`xgui.TextCallback` *):* fired when the user selects a date the string parameter specifies the selected date in the format *\"year-month-day\"*\n\n") Calendar;
	class Calendar : public xgui::Widget
	{
		protected:
			Calendar(xgui::Container * parent);
			virtual ~Calendar();
	};
}

%extend xgui::Calendar {
	%pythoncode {
		def __del__(self):
			if self.valid: self.delPyOwner(self)
	}
}

